<template>
  <div class="wscn-http404-container">
    <div class="bullshit">
      <div class="bullshit__oops">404错误!</div>
      <div class="bullshit__info">对不起，您正在寻找的页面不存在。</div>
      <div class="bullshit__return-home" @click="goHome">返回首页</div>
      <div class="bullshit__return-home" @click="goBack">返回上一页</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "error",
  data() {
    return {}
  },
  methods: {
    goHome() {
      console.log("------------")
      this.$router.push({
        path: "/home"
      })
    },
    goBack() {
      this.$router.go(-1)
    }
  }
}
</script>

<style lang="scss" scoped>
.wscn-http404-container {
  width: 100%;
  height: 100%;
}
.bullshit {
  margin-top: 100px;
  min-width: 600px;
  padding: 60px 0;
  transform: translate(-50%, -50%);
  position: absolute;
  top: 40%;
  left: 50%;
  &__oops {
    font-size: 64px;
    font-weight: bold;
    line-height: 80px;
    color: #000000;
    opacity: 0;
    margin-bottom: 40px;
    animation-name: slideUp;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
  }
  &__headline {
    font-size: 40px;
    line-height: 48px;
    color: #222;
    font-weight: bold;
    opacity: 0;
    margin-bottom: 20px;
    animation-name: slideUp;
    animation-duration: 0.5s;
    animation-delay: 0.1s;
    animation-fill-mode: forwards;
  }
  &__info {
    font-size: 26px;
    line-height: 42px;
    color: grey;
    opacity: 0;
    margin-bottom: 60px;
    animation-name: slideUp;
    animation-duration: 0.5s;
    animation-delay: 0.2s;
    animation-fill-mode: forwards;
  }
  &__return-home {
    display: inline-block;
    margin: 0 20px;
    // float: left;
    width: 220px;
    height: 72px;
    background: $themeColor;
    border-radius: 100px;
    text-align: center;
    color: #ffffff;
    opacity: 0;
    font-size: 28px;
    line-height: 72px;
    cursor: pointer;
    animation-name: slideUp;
    animation-duration: 0.5s;
    animation-delay: 0.3s;
    animation-fill-mode: forwards;
  }
  @keyframes slideUp {
    0% {
      transform: translateY(60px);
      opacity: 0;
    }
    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }
}
</style>
